home *** CD-ROM | disk | FTP | other *** search
/ Minami 55 / MINAMI55.ISO / Varios / Juegos / 03 - Red_Ninja.swf / scripts / DefineSprite_122 / frame_8 / DoAction.as
Text File  |  2004-10-04  |  225b  |  14 lines

  1. xdif = int(getProperty("/map/p", _X) - _X);
  2. ydif = int(getProperty("/map/p", _Y) - _Y);
  3. if(xdif < "0")
  4. {
  5.    xdif *= - "1";
  6. }
  7. if(ydif < "0")
  8. {
  9.    ydif *= - "1";
  10. }
  11. x2 = xdif * xdif;
  12. y2 = ydif * ydif;
  13. c2 = x2 + y2;
  14.